package com.lanswon.carlocationsearch.dao;

import com.lanswon.carlocationsearch.dto.CPicrecordDto;
import com.lanswon.carlocationsearch.entity.CPicrecord;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CPicrecordMapper {
    int insert(CPicrecord record);

    int insertSelective(CPicrecord record);

    /**
     * 通过车牌号和指定过车时间，查询之前指定条数的记录
     * @return @Param("condition") String condition,@Param("count") int count
     */
    List<CPicrecordDto> queryCPicrecordsByCard(@Param("sql") String sql);
    List<CPicrecordDto> queryCPicrecordsByCard1(@Param("carNum") String carNum,@Param("dateTime") String dateTime,@Param("count") int count);

}